package com.htdc.controller;

import com.htdc.service.IBannerImageService;
import com.htdc.util.Response;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by gryang on 15-1-4.
 */
@Controller
@RequestMapping(value = "/banner")
public class BannerImageController {

    @Autowired
    private IBannerImageService bannerImageService;

    @RequestMapping(value = "/getBannerList", method = RequestMethod.GET)
    @ResponseBody
    public Response getFeedbackList(@RequestParam("size") String size) {

        Response response = new Response();
        Map<String, Object> resultMap = new HashMap<>();
        resultMap.put("feedbackList", 1);
        resultMap.put("count",size);
        response.setBizData(resultMap);
        response.setMsg("终于成功了~~~");
        return response;
    }
}
